﻿using System.ComponentModel;
using System.Windows.Forms;

namespace ClassLibrary {
    [ToolboxItem(true), DefaultProperty("DataSource"), ComplexBindingProperties("DataSource", "DataMember")]
    public class MerdaNavigator : Control {
        [DefaultValue(null), AttributeProvider(typeof(IListSource))]
        public object DataSource { get; set; }

        //[DefaultValue(""), Editor("System.Windows.Forms.Design.DataMemberListEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))]
        [DefaultValue(""), Editor(typeof(MerdaEditor), typeof(System.Drawing.Design.UITypeEditor))]
        [RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
        public string DataMember { get; set; }
    }
}
